From 0302e3461590603e6e21d2c9e048844bd5f391e5 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Tue, 26 Jul 2005 17:07:50 +0000 Subject: [PATCH] Grab lock around registering watch. Signed-off-by: Rusty Russel Signed-off-by: Christian Limpach --- linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index c3d453047c..b703bcce7d 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -262,7 +262,9 @@ int do_xenbus_probe(void *unused) /* Enumerate devices in xenstore. */ xenbus_probe_devices("device"); + down(&xenbus_lock); register_xenbus_watch(&dev_watch); + up(&xenbus_lock); return 0; } -- 2.30.2